package com.itheima.Demo01.Tesk02;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test02 {
    public static void main(String[] args) throws ParseException {
        String S = "2018-03-04";
        SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd");
        Date parse1 = sdf.parse(S);
        SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy年MM月dd日");
        String format = sdf2.format(parse1);

        System.out.println(format);

    }
}
